using UnityEngine;

public class Reward : MonoBehaviour
{
    public RoomType RewardType;
    private bool _isDone;

    private void OnTriggerEnter(Collider other)
    {
        if (!_isDone)
        {
            if (RewardType == RoomType.Exit)
            {
                Debug.Log("闯关成功");
            }
            _isDone = true;
        }
    }
}
